<?php header("Content-type: application/xml")?>
<?php echo '<?xml version="1.0"?>' . "\n"?>
<markers>
<?php
require_once 'Marker.class.php';
require_once 'XmlTool.class.php';
$city = $_REQUEST['city'];
$markers = Marker::getMarkers($city);
?>
<?php foreach($markers as $marker): ?>
<marker
    lat='<?php echo $marker->getLatitude()?>'
    lng='<?php echo $marker->getLongitude()?>'
    html='<?php echo XmlTool::encode("<div class=\"location\"><h1>{$marker->getName()}</h1>en la direcci&oacute;n {$marker->getAddress()}</div>")?>'
    label='<?php echo XmlTool::encode($marker->getName())?>'
/>
<?php endforeach?>
</markers>
